package com.hnyyjsxy.mapper;

import com.hnyyjsxy.domain.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @date 2021/03/16
 */
public interface UserMapper {

    @Insert("insert into user values(null,#{username},#{password})")
    public void save(User user);

    @Select("select * from user")
    public List<User> findAll();
}
